package cn.water.luban.demo.order.main.handler;

import cn.water.demo.luban.commons.restful.JsonResult;
import cn.water.demo.luban.commons.restful.ResponseCode;
import cn.water.demo.luban.protocol.order.param.OrderAddParam;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public class OrderHandler {
    public static JsonResult orderHandler(OrderAddParam orderAddParam, BlockException e){
        System.out.println("e:"+e.getMessage());
        return JsonResult.failed(ResponseCode.NOT_ACCEPTABLE,"订单方法被降级了");
    }
}
